/*
 * Copyright (c) 2017年11月08日  by XuanWu Wireless Technology Co., Ltd 
 *             All rights reserved  
 */
package com.zml.eighth.example;

/**
 * @author <a href="mailto:zhaominglin@wxchina.com">minglin.Zhao</a>
 * @Description
 * @Date 2017/11/8
 * @Version 1.0.0
 */
public abstract class CaffeineBeverage {
    final void prepareRecipe(){
        boilWater();
        brew();
        pourInCup();
        addCondiments();
    }

    private void pourInCup() {
        System.out.println("Pouring into cup");
    }

    void boilWater() {
        System.out.println("Boiling water");
    }

    abstract void brew();
    abstract void addCondiments();


}
